<%@ page contentType="text/html;charset=UTF-8"%>
<!-- 引用标签库 -->
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
 <!-- 
<tr>
	<th class="head0">名称</th>
	<th class="head1">排序值</th>
	<th class="head0">链接</th>
	<th class="head0">权限</th>
	<th class="head0">备注</th>
	<th class="head0">操作</th>
</tr>
  -->
		 
			 
	 	<tr onmouseover="over('op${selfTree.node.id}');" onmouseout="out('op${selfTree.node.id}');">
	 		<td>${selfTree.node.id}</td>
			<td>
			<c:forEach begin="1" end="${vem}" step="1">&nbsp;&nbsp;&nbsp;&nbsp;</c:forEach>|${selfTree.node.name}   
			</td>
			<td>${selfTree.node.sort}</td>
			<td>${selfTree.node.href}</td>
			<td>${selfTree.node.permission}</td>
			<td>${selfTree.node.note}</td>
			<td >
				<div class="viopt">
					<div>
							<a href="${ctx }/sys/menu/add/${selfTree.node.id}" class="tb-link">添加下级菜单</a> 
							<a href="${ctx }/sys/menu/edit/${selfTree.node.id}" class="tb-link">修改</a> 
						    <a href="${ctx }/sys/menu/delete/${selfTree.node.id}" class="tb-link">删除</a>
					</div>
				</div>
			</td>
			 
		</tr>
	  <c:if test="${!empty selfTree.childs }"> 
		<c:forEach items="${selfTree.childs}" var="childtree">
		    <!-- 设置下一个页面 -->
            <c:set var="selfTree" value="${childtree}" scope="request"/>  
            <!-- 加深深度 -->
            <c:set var="vem" value="${vem+1}" scope="request" />
		    <%-- <%@include file="menuTree.jsp" %> --%>
		    <jsp:include page="menuTree.jsp" />
		    <!-- 回退的时候要把深度-1 -->
		    <c:set var="vem" value="${vem-1}" scope="request" />
		</c:forEach>
	 </c:if>   
		
		
		
		
		